package cn.fj.org.domain;

import cn.fj.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data//相当于getset方法和tostring
public class Department extends BaseDomain{

    //部门编号
    private String sn;
    //部门名称
    private String name;
    //部门层级id
    private String dirPath;
    //部门状态
    private Integer state;
    //部门管理员（关联外键）
    private Employee manager;
    private  Long manager_id;
    private Long parent_id;
    private Department parent;

    private List<Department> children= new ArrayList<>();
}
